/*
 * ChooseNormalInvoiceContract.java
 * business
 *
 * Created by ChenTao on 2017/1/7.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.shoppingcart.chooseinvoice.normal;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

/**
 * 选择普通发票-契约类
 * <p>
 * <p>Created by ChenTao(chentao7v@gmail.com) on 2017/2/8 15:42
 */
public class ChooseNormalInvoiceContract {

    interface Presenter extends BasePresenter {

        void filterNormalInvoiceList(String text);

        void onItemClick(int position);

        void onConfirmNormalInvoice();

        void changeNormalInvoice(String invoiceTitle);

        void addNormalInvoice(String inputTitle);
    }

    interface View extends BaseView<Presenter> {

        void refreshTitle(String normalTitle, boolean firstIn);

        void setInvoiceListItems(List<DisplayListItem> displayListItems);

        String getInputTitle();

        void finishActivity();
    }
}
